package action.chain;

import action.chain.vo.HolidayRequest;
import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class Minister extends Handler{

    public Minister(String name) {
        super(name);
    }

    @Override
    void handleHoliday(HolidayRequest holidayRequest) {
        if (holidayRequest.getCount()<=10){
            System.out.println(name+"部长进行了审批");
        }else {
            next.handleHoliday(holidayRequest);
        }
    }
}
